home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-16 | 972 b | 30 lines | [TEXT/GEOL] |
- Item 3124373 15-March-90 06:09PST
-
- From: DAWSON.M Dawson, Mark
-
- To: CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: Re: Dead Code Stripping with…
-
- >Is it necessary to keep in memory one instance of each "dead strip candidate"
- >class?
- >Could the sample in "Release Notes, Preliminary C++ Interfaces For MacApp
- >2.0ß9" p.3, be written:
- >
- >if (gDeadStripSuppression) {
- > TFoo* aFoo = new TFoo; aFoo.Free;
- > TFoo2* aFoo2 = new TFoo2; aFoo2.Free;
- >}
- >
- >Etienne Vautherin
-
- If I understand everything right, the whole point of the game is to fool the
- linker--the code inside if (gDeadStripSuppression) {} should NEVER be executed
- because gDeadStripSuppression is ALWAYS false. The linker doesn't know this,
- so it doesn't strip those classes. So you could do a aFoo.Free(), but it
- should be just extra typing practice because the new TFoo shouldn't be executed
- either.
-
- Mark
-
-